package server;

import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

public class Server extends JFrame {
    private JPanel contentPane;

    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                try{
                    new QQServer();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }

    public Server(){
        setTitle("碎碎念服务器");
        Dimension size = Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((size.width - 753) / 2,(size.height - 500) / 2,535,235);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        contentPane = new JPanel();
        contentPane.setBorder(new EmptyBorder(5,5,5,5));
        setContentPane(contentPane);
        contentPane.setLayout(null);
        JButton jButton = new JButton("\u6253\u5F00\u670D\u52A1\u5668");
        jButton.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                try{

                } catch (Exception exception) {
                    exception.printStackTrace();
                }
            }
        });
        jButton.setFont(new Font("宋体", Font.PLAIN, 16));
        jButton.setBounds(119, 71, 183, 43);
        contentPane.add(jButton);
    }
}
